package cn.tedu.test.luban.rpc.client;


import cn.tedu.test.luban.rpc.api.HelloService;

import java.io.*;

public class Client {
    public static void main(String[] args) throws IOException {

        String name = "Tom";

        //功能本地调用
//        HelloService helloService=new HelloServiceImpl();
//        String result = helloService.sayHi(name);
//        System.out.println("客户端本地调用结果:"+result);

        HelloService helloService = new HelloServiceProxy();
        String result = helloService.sayHi(name);
        System.out.println("客户端'本地'调用结果:"+result);


    }
}
